package com.cskaoyan.bean.vo;

import lombok.Data;

import java.util.List;

/**
 * @author :beauty
 * @version : $version
 * @date :Created in 2022/4/6   16:42
 * @description:
 * @return:
 */
@Data
public class AdminAdminListVo {
    private Integer total; //总的数据量，没有分页的情况下的数据量
    private Integer pages; //总的页码数
    private Integer limit; //当前页最多的数据量
    private Integer page; //当前页的页码
    private List<AdminAdminInnerAdmin> list; //当前页的数据

    public static AdminAdminListVo data(long total,Integer pages,Integer limit,Integer page,List list) {
        AdminAdminListVo userData = new AdminAdminListVo();
        userData.setTotal((int) total);
        userData.setPages(pages);
        userData.setPage(page);
        userData.setLimit(limit);
        userData.setList(list);
        return userData;
    }

}
